import type { Placement,Options } from '@popperjs/core'
export interface TooltipProps {
   content? : string;
   trigger?: 'hover' | 'click'; 
   //placement（位置）算是poperoptions中的一项，优先级比poperoptions低一点
   placement?:Placement;
   manual?: boolean;
   //partial把必选转化为可选
   popperOptions?: Partial<Options>;
   transition?: string;
   openDelay?: number;
   closeDelay?: number;

}

export interface TooltipEmits {
  (e:'visible-change', value:boolean) : void;
  (e:'click-outside',value:boolean) : void;
}

export interface TooltipInstance {
  show: () => void;
  hide: () => void;
}
